home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / lisp / map-ynp.elc < prev    next >
Emacs Compiled Lisp  |  1994-06-07  |  4.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 4a 75 6e 20 20 37 20 30 | on Tue |Jun 7 0|
|00000040| 33 3a 33 39 3a 31 39 20 | 31 39 39 34 0a 3b 3b 3b |3:39:19 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 6d 61 70 2d 79 | 6e 70 2e 65 6c 0a 3b 3b |sp/map-y|np.el.;;|
|00000080| 3b 20 65 6d 61 63 73 20 | 76 65 72 73 69 6f 6e 20 |; emacs |version |
|00000090| 31 39 2e 32 35 2e 33 2e | 0a 3b 3b 3b 20 62 79 74 |19.25.3.|.;;; byt|
|000000a0| 65 63 6f 6d 70 20 76 65 | 72 73 69 6f 6e 20 46 53 |ecomp ve|rsion FS|
|000000b0| 46 20 32 2e 31 30 0a 3b | 3b 3b 20 6f 70 74 69 6d |F 2.10.;|;; optim|
|000000c0| 69 7a 61 74 69 6f 6e 20 | 69 73 20 6f 6e 2e 0a 3b |ization |is on..;|
|000000d0| 3b 3b 20 74 68 69 73 20 | 66 69 6c 65 20 75 73 65 |;; this |file use|
|000000e0| 73 20 6f 70 63 6f 64 65 | 73 20 77 68 69 63 68 20 |s opcode|s which |
|000000f0| 64 6f 20 6e 6f 74 20 65 | 78 69 73 74 20 69 6e 20 |do not e|xist in |
|00000100| 45 6d 61 63 73 20 31 38 | 2e 0a 0a 28 69 66 20 28 |Emacs 18|...(if (|
|00000110| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000120| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000130| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000140| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|00000150| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|00000160| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|00000170| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|00000180| 6e 20 22 31 39 22 29 29 | 29 0a 20 20 20 20 28 65 |n "19"))|). (e|
|00000190| 72 72 6f 72 20 22 60 2f | 67 64 2f 67 6e 75 2f 65 |rror "`/|gd/gnu/e|
|000001a0| 6d 61 63 73 2f 31 39 2e | 30 2f 6c 69 73 70 2f 6d |macs/19.|0/lisp/m|
|000001b0| 61 70 2d 79 6e 70 2e 65 | 6c 27 20 77 61 73 20 63 |ap-ynp.e|l' was c|
|000001c0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001d0| 73 20 31 39 22 29 29 0a | 0a 28 64 65 66 61 6c 69 |s 19")).|.(defali|
|000001e0| 61 73 20 27 6d 61 70 2d | 79 2d 6f 72 2d 6e 2d 70 |as 'map-|y-or-n-p|
|000001f0| 20 23 5b 28 70 72 6f 6d | 70 74 65 72 20 61 63 74 | #[(prom|pter act|
|00000200| 6f 72 20 6c 69 73 74 20 | 26 6f 70 74 69 6f 6e 61 |or list |&optiona|
|00000210| 6c 20 68 65 6c 70 20 61 | 63 74 69 6f 6e 2d 61 6c |l help a|ction-al|
|00000220| 69 73 74 20 6e 6f 2d 63 | 75 72 73 6f 72 2d 69 6e |ist no-c|ursor-in|
|00000230| 2d 65 63 68 6f 2d 61 72 | 65 61 29 20 22 c0 19 c2 |-echo-ar|ea) "...|
|00000240| 1b c2 1c c2 1d c2 1e 06 | c2 1e 07 c2 1e 08 c2 1e |........|........|
|00000250| 09 c2 1e 5c 6e c2 1e 0b | 0e 5c 66 83 25 00 0e 5c |...\n...|.\f.%..\|
|00000260| 66 39 84 41 00 cd 0e 5c | 66 21 84 41 00 ce 0e 5c |f9.A...\|f!.A...\|
|00000270| 66 21 84 41 00 0e 5c 66 | 3a 83 45 00 0e 5c 66 40 |f!.A..\f|:.E..\f@|
|00000280| cf 3d 83 45 00 d0 82 46 | 00 d1 1e 12 0e 13 3c 83 |.=.E...F|......<.|
|00000290| 9d 00 d4 0e 15 40 21 d4 | 0e 15 41 40 21 d4 d6 0e |.....@!.|..A@!...|
|000002a0| 15 38 21 1e 17 1e 18 1e | 19 da db dc 0e 15 83 77 |.8!.....|.......w|
|000002b0| 00 0e 17 dd 0e 19 de 52 | 82 78 00 df e0 42 0e 15 |.......R|.x...B..|
|000002c0| 83 88 00 0e 17 e1 0e 18 | 51 82 89 00 e2 e3 42 e4 |........|Q.....B.|
|000002d0| e5 0e 26 5c 22 42 42 42 | 42 42 15 0e 13 14 2b 82 |..&\"BBB|BB....+.|
|000002e0| bb 00 0e 26 83 ad 00 e7 | e8 0e 26 e9 23 dd 50 82 |...&....|..&.#.P.|
|000002f0| ae 00 ea 13 eb ec e4 ed | 0e 26 5c 22 0e 2e 5c 22 |........|.&\"..\"|
|00000300| 42 15 ef 8e 0e 30 3b 83 | ce 00 cf f1 f2 0e 30 f3 |B....0;.|......0.|
|00000310| 42 42 45 16 30 0e 12 20 | 83 07 03 0e 30 0e 08 21 |BBE.0.. |....0..!|
|00000320| 89 16 06 3b 83 f2 02 c2 | 16 34 5c 66 83 f7 00 f5 |...;....|.4\f....|
|00000330| 5c 66 0e 06 0d 42 5c 22 | 86 f2 00 f6 16 5c 6e 82 |\f...B\"|.....\n.|
|00000340| 2c 01 0e 37 3f 1e 38 f9 | fa 0e 06 0b fb fc 0e 3d |,..7?.8.|.......=|
|00000350| 21 21 24 88 fe 20 16 07 | 29 f9 ff 0e 06 0b fb fc |!!$.. ..|).......|
|00000360| 0e 3d 21 21 81 40 00 0e | 07 21 25 88 81 41 00 0d |.=!!.@..|.!%..A..|
|00000370| fc 0e 07 21 5c 22 16 5c | 6e 0e 5c 6e 81 42 00 3d |...!\".\|n.\n.B.=|
|00000380| 83 3e 01 81 43 00 89 16 | 12 82 d0 00 0e 5c 6e 81 |.>..C...|.....\n.|
|00000390| 44 00 3d 83 53 01 0e 45 | 0e 08 21 88 09 54 11 82 |D.=.S..E|..!..T..|
|000003a0| ce 00 0e 5c 6e 81 46 00 | 3d 84 ce 00 0e 5c 6e e0 |...\n.F.|=....\n.|
|000003b0| 3d 83 75 01 0e 45 0e 08 | 21 88 09 54 11 81 47 00 |=.u..E..|!..T..G.|
|000003c0| 89 16 12 82 d0 00 0e 5c | 6e f6 3d 83 9b 01 81 48 |.......\|n.=....H|
|000003d0| 00 16 34 cf c2 81 49 00 | d2 81 4a 00 0e 12 44 45 |..4...I.|..J...DE|
|000003e0| 81 4a 00 0e 08 44 46 89 | 16 12 82 d0 00 0e 5c 6e |.J...DF.|......\n|
|000003f0| e3 3d 83 d5 01 81 4b 00 | 0e 30 0e 08 21 21 83 b7 |.=....K.|.0..!!..|
|00000400| 01 0e 45 0e 08 21 88 09 | 54 11 0e 12 20 83 ce 00 |..E..!..|T... ...|
|00000410| 81 4b 00 0e 30 0e 08 21 | 21 83 b7 01 0e 45 0e 08 |.K..0..!|!....E..|
|00000420| 21 88 09 54 11 82 b7 01 | 0e 5c 6e d5 3d 83 5e 02 |!..T....|.\n.=.^.|
|00000430| 81 4c 00 90 81 4d 00 0e | 15 83 ee 01 0e 15 40 82 |.L...M..|......@.|
|00000440| f1 01 81 4e 00 0e 15 83 | fd 01 0e 15 41 40 82 00 |...N....|....A@..|
|00000450| 02 81 4f 00 0e 15 83 5c | 66 02 d6 0e 15 38 82 0f |..O....\|f....8..|
|00000460| 02 81 50 00 1e 17 1e 18 | 1e 19 f2 81 51 00 0e 17 |..P.....|....Q...|
|00000470| 0e 19 89 0e 17 0e 18 26 | 06 e7 81 52 00 0e 26 81 |.......&|...R..&.|
|00000480| 53 00 23 0e 26 85 36 02 | 81 53 00 f2 81 54 00 0e |S.#.&.6.|.S...T..|
|00000490| 17 0e 19 23 52 2b 21 91 | 88 cf c2 81 49 00 d2 81 |...#R+!.|....I...|
|000004a0| 4a 00 0e 12 44 45 81 4a | 00 0e 08 44 46 89 16 12 |J...DE.J|...DF...|
|000004b0| 82 d0 00 81 55 00 0e 5c | 6e 21 83 91 02 0e 5c 6e |....U..\|n!....\n|
|000004c0| c0 48 0e 08 21 83 77 02 | 09 54 11 82 ce 00 cf c2 |.H..!.w.|.T......|
|000004d0| 81 49 00 d2 81 4a 00 0e | 12 44 45 81 4a 00 0e 08 |.I...J..|.DE.J...|
|000004e0| 44 46 89 16 12 82 d0 00 | 0e 07 3a 83 bf 02 0e 07 |DF......|..:.....|
|000004f0| 40 81 56 00 3d 83 bf 02 | 0e 07 16 0b cf c2 81 49 |@.V.=...|.......I|
|00000500| 00 d2 81 4a 00 0e 12 44 | 45 81 4a 00 0e 08 44 46 |...J...D|E.J...DF|
|00000510| 89 16 12 82 d0 00 f9 81 | 57 00 fb fc 0e 3d 21 21 |........|W....=!!|
|00000520| 5c 22 88 81 58 00 20 88 | 81 59 00 81 5a 00 21 88 |\"..X. .|.Y..Z.!.|
|00000530| cf c2 81 49 00 d2 81 4a | 00 0e 12 44 45 81 4a 00 |...I...J|...DE.J.|
|00000540| 0e 08 44 46 89 16 12 82 | d0 00 81 4b 00 0e 06 21 |..DF....|...K...!|
|00000550| 83 ce 00 0e 45 0e 08 21 | 88 09 54 11 82 ce 00 29 |....E..!|..T....)|
|00000560| f9 ea 21 88 09 2e 0b 87 | 22 20 5b 30 20 61 63 74 |..!.....|" [0 act|
|00000570| 69 6f 6e 73 20 6e 69 6c | 20 75 73 65 72 2d 6b 65 |ions nil| user-ke|
|00000580| 79 73 20 6d 6f 75 73 65 | 2d 65 76 65 6e 74 20 6d |ys mouse|-event m|
|00000590| 61 70 20 70 72 6f 6d 70 | 74 20 63 68 61 72 20 65 |ap promp|t char e|
|000005a0| 6c 74 20 74 61 69 6c 20 | 64 65 66 20 64 65 6c 61 |lt tail |def dela|
|000005b0| 79 65 64 2d 73 77 69 74 | 63 68 2d 66 72 61 6d 65 |yed-swit|ch-frame|
|000005c0| 20 6c 69 73 74 20 73 75 | 62 72 70 20 62 79 74 65 | list su|brp byte|
|000005d0| 2d 63 6f 64 65 2d 66 75 | 6e 63 74 69 6f 6e 2d 70 |-code-fu|nction-p|
|000005e0| 20 6c 61 6d 62 64 61 20 | 23 5b 6e 69 6c 20 22 08 | lambda |#[nil ".|
|000005f0| 20 89 11 87 22 20 5b 6c | 69 73 74 20 65 6c 74 5d | ..." [l|ist elt]|
|00000600| 20 32 5d 20 23 5b 6e 69 | 6c 20 22 08 85 0b 00 08 | 2] #[ni|l ".....|
|00000610| 40 11 08 41 10 c2 87 22 | 20 5b 6c 69 73 74 20 65 |@..A..."| [list e|
|00000620| 6c 74 20 74 5d 20 31 5d | 20 6e 65 78 74 20 6c 61 |lt t] 1]| next la|
|00000630| 73 74 2d 6e 6f 6e 6d 65 | 6e 75 2d 65 76 65 6e 74 |st-nonme|nu-event|
|00000640| 20 63 61 70 69 74 61 6c | 69 7a 65 20 68 65 6c 70 | capital|ize help|
|00000650| 20 32 20 61 63 74 69 6f | 6e 20 6f 62 6a 65 63 74 | 2 actio|n object|
|00000660| 73 20 6f 62 6a 65 63 74 | 20 28 22 59 65 73 22 20 |s object| ("Yes" |
|00000670| 2e 20 61 63 74 29 20 28 | 22 4e 6f 22 20 2e 20 73 |. act) (|"No" . s|
|00000680| 6b 69 70 29 20 28 22 51 | 75 69 74 22 20 2e 20 65 |kip) ("Q|uit" . e|
|00000690| 78 69 74 29 20 22 20 22 | 20 22 20 41 6e 64 20 51 |xit) " "| " And Q|
|000006a0| 75 69 74 22 20 22 44 6f | 20 69 74 20 61 6e 64 20 |uit" "Do| it and |
|000006b0| 51 75 69 74 22 20 61 63 | 74 2d 61 6e 64 2d 65 78 |Quit" ac|t-and-ex|
|000006c0| 69 74 20 22 20 41 6c 6c | 20 22 20 22 44 6f 20 41 |it " All| " "Do A|
|000006d0| 6c 6c 22 20 61 75 74 6f | 6d 61 74 69 63 20 6d 61 |ll" auto|matic ma|
|000006e0| 70 63 61 72 20 23 5b 28 | 65 6c 74 29 20 22 c0 c1 |pcar #[(|elt) "..|
|000006f0| 5c 6e 38 21 c3 5c 6e 41 | 40 21 42 87 22 20 5b 63 |\n8!.\nA|@!B." [c|
|00000700| 61 70 69 74 61 6c 69 7a | 65 20 32 20 65 6c 74 20 |apitaliz|e 2 elt |
|00000710| 76 65 63 74 6f 72 5d 20 | 33 5d 20 61 63 74 69 6f |vector] |3] actio|
|00000720| 6e 2d 61 6c 69 73 74 20 | 6d 61 70 63 6f 6e 63 61 |n-alist |mapconca|
|00000730| 74 20 23 5b 28 65 6c 74 | 29 20 22 c0 c1 5c 6e 40 |t #[(elt|) "..\n@|
|00000740| 21 21 87 22 20 5b 6b 65 | 79 2d 64 65 73 63 72 69 |!!." [ke|y-descri|
|00000750| 70 74 69 6f 6e 20 63 68 | 61 72 2d 74 6f 2d 73 74 |ption ch|ar-to-st|
|00000760| 72 69 6e 67 20 65 6c 74 | 5d 20 33 5d 20 22 2c 20 |ring elt|] 3] ", |
|00000770| 22 20 22 22 20 6b 65 79 | 6d 61 70 20 61 70 70 65 |" "" key|map appe|
|00000780| 6e 64 20 23 5b 28 65 6c | 74 29 20 22 08 40 c1 08 |nd #[(el|t) ".@..|
|00000790| 41 40 21 42 87 22 20 5b | 65 6c 74 20 76 65 63 74 |A@!B." [|elt vect|
|000007a0| 6f 72 5d 20 33 5d 20 71 | 75 65 72 79 2d 72 65 70 |or] 3] q|uery-rep|
|000007b0| 6c 61 63 65 2d 6d 61 70 | 20 28 28 62 79 74 65 2d |lace-map| ((byte-|
|000007c0| 63 6f 64 65 20 22 08 83 | 08 00 08 09 42 11 c2 87 |code "..|....B...|
|000007d0| 22 20 5b 64 65 6c 61 79 | 65 64 2d 73 77 69 74 63 |" [delay|ed-switc|
|000007e0| 68 2d 66 72 61 6d 65 20 | 75 6e 72 65 61 64 2d 63 |h-frame |unread-c|
|000007f0| 6f 6d 6d 61 6e 64 2d 65 | 76 65 6e 74 73 20 6e 69 |ommand-e|vents ni|
|00000800| 6c 5d 20 32 29 29 20 70 | 72 6f 6d 70 74 65 72 20 |l] 2)) p|rompter |
|00000810| 28 6f 62 6a 65 63 74 29 | 20 66 6f 72 6d 61 74 20 |(object)| format |
|00000820| 28 6f 62 6a 65 63 74 29 | 20 71 75 69 74 2d 66 6c |(object)| quit-fl|
|00000830| 61 67 20 78 2d 70 6f 70 | 75 70 2d 64 69 61 6c 6f |ag x-pop|up-dialo|
|00000840| 67 20 71 75 69 74 20 6e | 6f 2d 63 75 72 73 6f 72 |g quit n|o-cursor|
|00000850| 2d 69 6e 2d 65 63 68 6f | 2d 61 72 65 61 20 63 75 |-in-echo|-area cu|
|00000860| 72 73 6f 72 2d 69 6e 2d | 65 63 68 6f 2d 61 72 65 |rsor-in-|echo-are|
|00000870| 61 20 6d 65 73 73 61 67 | 65 20 22 25 73 28 79 2c |a messag|e "%s(y,|
|00000880| 20 6e 2c 20 21 2c 20 2e | 2c 20 71 2c 20 25 73 6f | n, !, .|, q, %so|
|00000890| 72 20 25 73 29 20 22 20 | 6b 65 79 2d 64 65 73 63 |r %s) " |key-desc|
|000008a0| 72 69 70 74 69 6f 6e 20 | 76 65 63 74 6f 72 20 68 |ription |vector h|
|000008b0| 65 6c 70 2d 63 68 61 72 | 20 72 65 61 64 2d 65 76 |elp-char| read-ev|
|000008c0| 65 6e 74 20 22 25 73 28 | 79 2c 20 6e 2c 20 21 2c |ent "%s(|y, n, !,|
|000008d0| 20 2e 2c 20 71 2c 20 25 | 73 6f 72 20 25 73 29 20 | ., q, %|sor %s) |
|000008e0| 25 73 22 20 73 69 6e 67 | 6c 65 2d 6b 65 79 2d 64 |%s" sing|le-key-d|
|000008f0| 65 73 63 72 69 70 74 69 | 6f 6e 20 6c 6f 6f 6b 75 |escripti|on looku|
|00000900| 70 2d 6b 65 79 20 65 78 | 69 74 20 28 6c 61 6d 62 |p-key ex|it (lamb|
|00000910| 64 61 20 6e 69 6c 29 20 | 61 63 74 20 61 63 74 6f |da nil) |act acto|
|00000920| 72 20 73 6b 69 70 20 28 | 6c 61 6d 62 64 61 20 6e |r skip (|lambda n|
|00000930| 69 6c 29 20 74 20 73 65 | 74 71 20 71 75 6f 74 65 |il) t se|tq quote|
|00000940| 20 65 76 61 6c 20 22 2a | 48 65 6c 70 2a 22 20 70 | eval "*|Help*" p|
|00000950| 72 69 6e 63 20 22 6f 62 | 6a 65 63 74 22 20 22 6f |rinc "ob|ject" "o|
|00000960| 62 6a 65 63 74 73 22 20 | 22 61 63 74 20 6f 6e 22 |bjects" |"act on"|
|00000970| 20 22 54 79 70 65 20 53 | 50 43 20 6f 72 20 60 79 | "Type S|PC or `y|
|00000980| 27 20 74 6f 20 25 73 20 | 74 68 65 20 63 75 72 72 |' to %s |the curr|
|00000990| 65 6e 74 20 25 73 3b 5c | 6e 44 45 4c 20 6f 72 20 |ent %s;\|nDEL or |
|000009a0| 60 6e 27 20 74 6f 20 73 | 6b 69 70 20 74 68 65 20 |`n' to s|kip the |
|000009b0| 63 75 72 72 65 6e 74 20 | 25 73 3b 5c 6e 21 20 74 |current |%s;\n! t|
|000009c0| 6f 20 25 73 20 61 6c 6c | 20 72 65 6d 61 69 6e 69 |o %s all| remaini|
|000009d0| 6e 67 20 25 73 3b 5c 6e | 45 53 43 20 6f 72 20 60 |ng %s;\n|ESC or `|
|000009e0| 71 27 20 74 6f 20 65 78 | 69 74 3b 5c 6e 22 20 23 |q' to ex|it;\n" #|
|000009f0| 5b 28 65 6c 74 29 20 22 | c0 c1 5c 6e 40 c3 5c 6e |[(elt) "|..\n@.\n|
|00000a00| 38 23 87 22 20 5b 66 6f | 72 6d 61 74 20 22 25 63 |8#." [fo|rmat "%c|
|00000a10| 20 74 6f 20 25 73 22 20 | 65 6c 74 20 32 5d 20 35 | to %s" |elt 2] 5|
|00000a20| 5d 20 22 3b 5c 6e 22 20 | 22 6f 72 20 2e 20 28 70 |] ";\n" |"or . (p|
|00000a30| 65 72 69 6f 64 29 20 74 | 6f 20 25 73 20 74 68 65 |eriod) t|o %s the|
|00000a40| 20 63 75 72 72 65 6e 74 | 20 25 73 20 61 6e 64 20 | current| %s and |
|00000a50| 65 78 69 74 2e 22 20 76 | 65 63 74 6f 72 70 20 73 |exit." v|ectorp s|
|00000a60| 77 69 74 63 68 2d 66 72 | 61 6d 65 20 22 54 79 70 |witch-fr|ame "Typ|
|00000a70| 65 20 25 73 20 66 6f 72 | 20 68 65 6c 70 2e 22 20 |e %s for| help." |
|00000a80| 62 65 65 70 20 73 69 74 | 2d 66 6f 72 20 31 5d 20 |beep sit|-for 1] |
|00000a90| 31 30 20 22 5c 0a 41 73 | 6b 20 61 20 73 65 72 69 |10 "\.As|k a seri|
|00000aa0| 65 73 20 6f 66 20 62 6f | 6f 6c 65 61 6e 20 71 75 |es of bo|olean qu|
|00000ab0| 65 73 74 69 6f 6e 73 2e | 0a 54 61 6b 65 73 20 61 |estions.|.Takes a|
|00000ac0| 72 67 73 20 50 52 4f 4d | 50 54 45 52 20 41 43 54 |rgs PROM|PTER ACT|
|00000ad0| 4f 52 20 4c 49 53 54 2c | 20 61 6e 64 20 6f 70 74 |OR LIST,| and opt|
|00000ae0| 69 6f 6e 61 6c 20 61 72 | 67 73 20 48 45 4c 50 20 |ional ar|gs HELP |
|00000af0| 61 6e 64 20 41 43 54 49 | 4f 4e 2d 41 4c 49 53 54 |and ACTI|ON-ALIST|
|00000b00| 2e 0a 0a 4c 49 53 54 20 | 69 73 20 61 20 6c 69 73 |...LIST |is a lis|
|00000b10| 74 20 6f 66 20 6f 62 6a | 65 63 74 73 2c 20 6f 72 |t of obj|ects, or|
|00000b20| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 6f 66 20 6e | a funct|ion of n|
|00000b30| 6f 20 61 72 67 75 6d 65 | 6e 74 73 20 74 6f 20 72 |o argume|nts to r|
|00000b40| 65 74 75 72 6e 20 74 68 | 65 20 6e 65 78 74 0a 6f |eturn th|e next.o|
|00000b50| 62 6a 65 63 74 20 6f 72 | 20 6e 69 6c 2e 0a 0a 49 |bject or| nil...I|
|00000b60| 66 20 50 52 4f 4d 50 54 | 45 52 20 69 73 20 61 20 |f PROMPT|ER is a |
|00000b70| 73 74 72 69 6e 67 2c 20 | 74 68 65 20 70 72 6f 6d |string, |the prom|
|00000b80| 70 74 20 69 73 20 28 66 | 6f 72 6d 61 74 20 50 52 |pt is (f|ormat PR|
|00000b90| 4f 4d 50 54 45 52 20 4f | 42 4a 45 43 54 29 2e 20 |OMPTER O|BJECT). |
|00000ba0| 20 49 66 20 6e 6f 74 0a | 61 20 73 74 72 69 6e 67 | If not.|a string|
|00000bb0| 2c 20 50 52 4f 4d 50 54 | 45 52 20 69 73 20 61 20 |, PROMPT|ER is a |
|00000bc0| 66 75 6e 63 74 69 6f 6e | 20 6f 66 20 6f 6e 65 20 |function| of one |
|00000bd0| 61 72 67 20 28 61 6e 20 | 6f 62 6a 65 63 74 20 66 |arg (an |object f|
|00000be0| 72 6f 6d 20 4c 49 53 54 | 29 2c 20 77 68 69 63 68 |rom LIST|), which|
|00000bf0| 0a 72 65 74 75 72 6e 73 | 20 61 20 73 74 72 69 6e |.returns| a strin|
|00000c00| 67 20 74 6f 20 62 65 20 | 75 73 65 64 20 61 73 20 |g to be |used as |
|00000c10| 74 68 65 20 70 72 6f 6d | 70 74 20 66 6f 72 20 74 |the prom|pt for t|
|00000c20| 68 61 74 20 6f 62 6a 65 | 63 74 2e 20 20 49 66 20 |hat obje|ct. If |
|00000c30| 74 68 65 20 72 65 74 75 | 72 6e 0a 76 61 6c 75 65 |the retu|rn.value|
|00000c40| 20 69 73 20 6e 6f 74 20 | 61 20 73 74 72 69 6e 67 | is not |a string|
|00000c50| 2c 20 69 74 20 69 73 20 | 65 76 61 6c 27 64 20 74 |, it is |eval'd t|
|00000c60| 6f 20 67 65 74 20 74 68 | 65 20 61 6e 73 77 65 72 |o get th|e answer|
|00000c70| 3b 20 69 74 20 6d 61 79 | 20 62 65 20 6e 69 6c 20 |; it may| be nil |
|00000c80| 74 6f 0a 69 67 6e 6f 72 | 65 20 74 68 65 20 6f 62 |to.ignor|e the ob|
|00000c90| 6a 65 63 74 2c 20 74 20 | 74 6f 20 61 63 74 20 6f |ject, t |to act o|
|00000ca0| 6e 20 74 68 65 20 6f 62 | 6a 65 63 74 20 77 69 74 |n the ob|ject wit|
|00000cb0| 68 6f 75 74 20 61 73 6b | 69 6e 67 20 74 68 65 20 |hout ask|ing the |
|00000cc0| 75 73 65 72 2c 20 6f 72 | 20 61 0a 66 6f 72 6d 20 |user, or| a.form |
|00000cd0| 74 6f 20 64 6f 20 61 20 | 6d 6f 72 65 20 63 6f 6d |to do a |more com|
|00000ce0| 70 6c 65 78 20 70 72 6f | 6d 70 74 2e 0a 0a 41 43 |plex pro|mpt...AC|
|00000cf0| 54 4f 52 20 69 73 20 61 | 20 66 75 6e 63 74 69 6f |TOR is a| functio|
|00000d00| 6e 20 6f 66 20 6f 6e 65 | 20 61 72 67 20 28 61 6e |n of one| arg (an|
|00000d10| 20 6f 62 6a 65 63 74 20 | 66 72 6f 6d 20 4c 49 53 | object |from LIS|
|00000d20| 54 29 2c 0a 77 68 69 63 | 68 20 67 65 74 73 20 63 |T),.whic|h gets c|
|00000d30| 61 6c 6c 65 64 20 77 69 | 74 68 20 65 61 63 68 20 |alled wi|th each |
|00000d40| 6f 62 6a 65 63 74 20 74 | 68 61 74 20 74 68 65 20 |object t|hat the |
|00000d50| 75 73 65 72 20 61 6e 73 | 77 65 72 73 20 60 79 65 |user ans|wers `ye|
|00000d60| 73 27 20 66 6f 72 2e 0a | 0a 49 66 20 48 45 4c 50 |s' for..|.If HELP|
|00000d70| 20 69 73 20 67 69 76 65 | 6e 2c 20 69 74 20 69 73 | is give|n, it is|
|00000d80| 20 61 20 6c 69 73 74 20 | 28 4f 42 4a 45 43 54 20 | a list |(OBJECT |
|00000d90| 4f 42 4a 45 43 54 53 20 | 41 43 54 49 4f 4e 29 2c |OBJECTS |ACTION),|
|00000da0| 0a 77 68 65 72 65 20 4f | 42 4a 45 43 54 20 69 73 |.where O|BJECT is|
|00000db0| 20 61 20 73 74 72 69 6e | 67 20 67 69 76 69 6e 67 | a strin|g giving|
|00000dc0| 20 74 68 65 20 73 69 6e | 67 75 6c 61 72 20 6e 6f | the sin|gular no|
|00000dd0| 75 6e 20 66 6f 72 20 61 | 6e 20 65 6c 74 20 6f 66 |un for a|n elt of|
|00000de0| 20 4c 49 53 54 3b 0a 4f | 42 4a 45 43 54 53 20 69 | LIST;.O|BJECTS i|
|00000df0| 73 20 74 68 65 20 70 6c | 75 72 61 6c 20 6e 6f 75 |s the pl|ural nou|
|00000e00| 6e 20 66 6f 72 20 65 6c | 74 73 20 6f 66 20 4c 49 |n for el|ts of LI|
|00000e10| 53 54 2c 20 61 6e 64 20 | 41 43 54 49 4f 4e 20 69 |ST, and |ACTION i|
|00000e20| 73 20 61 20 74 72 61 6e | 73 69 74 69 76 65 0a 76 |s a tran|sitive.v|
|00000e30| 65 72 62 20 64 65 73 63 | 72 69 62 69 6e 67 20 41 |erb desc|ribing A|
|00000e40| 43 54 4f 52 2e 20 20 54 | 68 65 20 64 65 66 61 75 |CTOR. T|he defau|
|00000e50| 6c 74 20 69 73 20 28 5c | 22 6f 62 6a 65 63 74 5c |lt is (\|"object\|
|00000e60| 22 20 5c 22 6f 62 6a 65 | 63 74 73 5c 22 20 5c 22 |" \"obje|cts\" \"|
|00000e70| 61 63 74 20 6f 6e 5c 22 | 29 2e 0a 0a 41 74 20 74 |act on\"|)...At t|
|00000e80| 68 65 20 70 72 6f 6d 70 | 74 73 2c 20 74 68 65 20 |he promp|ts, the |
|00000e90| 75 73 65 72 20 6d 61 79 | 20 65 6e 74 65 72 20 79 |user may| enter y|
|00000ea0| 2c 20 59 2c 20 6f 72 20 | 53 50 43 20 74 6f 20 61 |, Y, or |SPC to a|
|00000eb0| 63 74 20 6f 6e 20 74 68 | 61 74 20 6f 62 6a 65 63 |ct on th|at objec|
|00000ec0| 74 3b 0a 6e 2c 20 4e 2c | 20 6f 72 20 44 45 4c 20 |t;.n, N,| or DEL |
|00000ed0| 74 6f 20 73 6b 69 70 20 | 74 68 61 74 20 6f 62 6a |to skip |that obj|
|00000ee0| 65 63 74 3b 20 21 20 74 | 6f 20 61 63 74 20 6f 6e |ect; ! t|o act on|
|00000ef0| 20 61 6c 6c 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6f | all fol|lowing o|
|00000f00| 62 6a 65 63 74 73 3b 0a | 45 53 43 20 6f 72 20 71 |bjects;.|ESC or q|
|00000f10| 20 74 6f 20 65 78 69 74 | 20 28 73 6b 69 70 20 61 | to exit| (skip a|
|00000f20| 6c 6c 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6f 62 6a |ll follo|wing obj|
|00000f30| 65 63 74 73 29 3b 20 2e | 20 28 70 65 72 69 6f 64 |ects); .| (period|
|00000f40| 29 20 74 6f 20 61 63 74 | 20 6f 6e 20 74 68 65 0a |) to act| on the.|
|00000f50| 63 75 72 72 65 6e 74 20 | 6f 62 6a 65 63 74 20 61 |current |object a|
|00000f60| 6e 64 20 74 68 65 6e 20 | 65 78 69 74 3b 20 6f 72 |nd then |exit; or|
|00000f70| 20 5c 5c 5b 68 65 6c 70 | 2d 63 6f 6d 6d 61 6e 64 | \\[help|-command|
|00000f80| 5d 20 74 6f 20 67 65 74 | 20 68 65 6c 70 2e 0a 0a |] to get| help...|
|00000f90| 49 66 20 41 43 54 49 4f | 4e 2d 41 4c 49 53 54 20 |If ACTIO|N-ALIST |
|00000fa0| 69 73 20 67 69 76 65 6e | 2c 20 69 74 20 69 73 20 |is given|, it is |
|00000fb0| 61 6e 20 61 6c 69 73 74 | 20 28 4b 45 59 20 46 55 |an alist| (KEY FU|
|00000fc0| 4e 43 54 49 4f 4e 20 48 | 45 4c 50 29 20 6f 66 20 |NCTION H|ELP) of |
|00000fd0| 65 78 74 72 61 20 6b 65 | 79 73 0a 74 68 61 74 20 |extra ke|ys.that |
|00000fe0| 77 69 6c 6c 20 62 65 20 | 61 63 63 65 70 74 65 64 |will be |accepted|
|00000ff0| 2e 20 20 4b 45 59 20 69 | 73 20 61 20 63 68 61 72 |. KEY i|s a char|
|00001000| 61 63 74 65 72 3b 20 46 | 55 4e 43 54 49 4f 4e 20 |acter; F|UNCTION |
|00001010| 69 73 20 61 20 66 75 6e | 63 74 69 6f 6e 20 6f 66 |is a fun|ction of|
|00001020| 20 6f 6e 65 0a 61 72 67 | 20 28 61 6e 20 6f 62 6a | one.arg| (an obj|
|00001030| 65 63 74 20 66 72 6f 6d | 20 4c 49 53 54 29 3b 20 |ect from| LIST); |
|00001040| 48 45 4c 50 20 69 73 20 | 61 20 73 74 72 69 6e 67 |HELP is |a string|
|00001050| 2e 20 20 57 68 65 6e 20 | 74 68 65 20 75 73 65 72 |. When |the user|
|00001060| 20 68 69 74 73 20 4b 45 | 59 2c 0a 46 55 4e 43 54 | hits KE|Y,.FUNCT|
|00001070| 49 4f 4e 20 69 73 20 63 | 61 6c 6c 65 64 2e 20 20 |ION is c|alled. |
|00001080| 49 66 20 69 74 20 72 65 | 74 75 72 6e 73 20 6e 6f |If it re|turns no|
|00001090| 6e 2d 6e 69 6c 2c 20 74 | 68 65 20 6f 62 6a 65 63 |n-nil, t|he objec|
|000010a0| 74 20 69 73 20 63 6f 6e | 73 69 64 65 72 65 64 0a |t is con|sidered.|
|000010b0| 5c 22 61 63 74 65 64 20 | 75 70 6f 6e 5c 22 2c 20 |\"acted |upon\", |
|000010c0| 61 6e 64 20 74 68 65 20 | 6e 65 78 74 20 6f 62 6a |and the |next obj|
|000010d0| 65 63 74 20 66 72 6f 6d | 20 4c 49 53 54 20 69 73 |ect from| LIST is|
|000010e0| 20 70 72 6f 63 65 73 73 | 65 64 2e 20 20 49 66 20 | process|ed. If |
|000010f0| 69 74 20 72 65 74 75 72 | 6e 73 0a 6e 69 6c 2c 20 |it retur|ns.nil, |
|00001100| 74 68 65 20 70 72 6f 6d | 70 74 20 69 73 20 72 65 |the prom|pt is re|
|00001110| 70 65 61 74 65 64 20 66 | 6f 72 20 74 68 65 20 73 |peated f|or the s|
|00001120| 61 6d 65 20 6f 62 6a 65 | 63 74 2e 0a 0a 46 69 6e |ame obje|ct...Fin|
|00001130| 61 6c 20 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 75 |al optio|nal argu|
|00001140| 6d 65 6e 74 20 4e 4f 2d | 43 55 52 53 4f 52 2d 49 |ment NO-|CURSOR-I|
|00001150| 4e 2d 45 43 48 4f 2d 41 | 52 45 41 20 6e 6f 6e 2d |N-ECHO-A|REA non-|
|00001160| 6e 69 6c 20 73 61 79 73 | 20 6e 6f 74 20 74 6f 20 |nil says| not to |
|00001170| 73 65 74 0a 60 63 75 72 | 73 6f 72 2d 69 6e 2d 65 |set.`cur|sor-in-e|
|00001180| 63 68 6f 2d 61 72 65 61 | 27 20 77 68 69 6c 65 20 |cho-area|' while |
|00001190| 70 72 6f 6d 70 74 69 6e | 67 2e 0a 0a 54 68 69 73 |promptin|g...This|
|000011a0| 20 66 75 6e 63 74 69 6f | 6e 20 75 73 65 73 20 60 | functio|n uses `|
|000011b0| 71 75 65 72 79 2d 72 65 | 70 6c 61 63 65 2d 6d 61 |query-re|place-ma|
|000011c0| 70 27 20 74 6f 20 64 65 | 66 69 6e 65 20 74 68 65 |p' to de|fine the|
|000011d0| 20 73 74 61 6e 64 61 72 | 64 20 72 65 73 70 6f 6e | standar|d respon|
|000011e0| 73 65 73 2c 0a 62 75 74 | 20 6e 6f 74 20 61 6c 6c |ses,.but| not all|
|000011f0| 20 6f 66 20 74 68 65 20 | 72 65 73 70 6f 6e 73 65 | of the |response|
|00001200| 73 20 77 68 69 63 68 20 | 60 71 75 65 72 79 2d 72 |s which |`query-r|
|00001210| 65 70 6c 61 63 65 27 20 | 75 6e 64 65 72 73 74 61 |eplace' |understa|
|00001220| 6e 64 73 0a 61 72 65 20 | 6d 65 61 6e 69 6e 67 66 |nds.are |meaningf|
|00001230| 75 6c 20 68 65 72 65 2e | 0a 0a 52 65 74 75 72 6e |ul here.|..Return|
|00001240| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00001250| 61 63 74 69 6f 6e 73 20 | 74 61 6b 65 6e 2e 22 5d |actions |taken."]|
|00001260| 29 0a | |). | |
+--------+-------------------------+-------------------------+--------+--------+